
import Vue from "vue";


import Vuex from "vuex";


Vue.use(Vuex);

const actions = {
    setUser({commit,state},user){
        commit("setUser",user);
    }
};
const mutations = {
    setUser(state,user){
        state.user = user;
    }
};
const state = {
    user:{}
};

export default new Vuex.Store({
    modules: {
    },
    actions,
    state,
    mutations
});

